package homework.homework_2;

public class ThreadA implements Runnable {

    private InputCont ic;

    public ThreadA(){}

    public ThreadA(InputCont ic){
        this.ic = ic;
    }

    @Override
    public void run() {
        int n = 0;
        int i = 1;
        while(n < 20) {
            n++;
            i = (i + 4 - 1) % 4;
            ic.aThread("E:\\javaooGit\\thread_2\\src\\homework\\homework_2\\"+(i+1)+".txt","1");
        }
    }
}
